package io.renren.common.utils;

import java.util.Random;
import java.util.UUID;

public class NumericUUIDGenerator {

    public static String generateNumericUUID() {
        UUID uuid = UUID.randomUUID();
        String numericUUID = uuid.toString().replaceAll("[^0-9]", "");
        Random random = new Random();
        while (numericUUID.length() < 16) {
            numericUUID += random.nextInt(10);
        }
        return numericUUID.substring(0, 16);
    }

    public static void main(String[] args) {
        String numericUUID = generateNumericUUID();
        System.out.println("Numeric UUID: " + numericUUID);
    }
}
